package com.hns.can.common.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.hns.can.base.entity.TmpOrganStorageEntity;
import com.hns.frame.service.CommonService;
import com.hns.tool.pub.PubUtil;
import com.hns.tool.pub.SearchConditionVo;

@Service
public class SedateService extends CommonService{
	
	private final Logger logger = LoggerFactory.getLogger(SedateService.class); 
	
	/**
	 * 
	 * @param searchConditionVo
	 * @author:Qianjy
	 * @email:494758538@qq.com
	 * @创建日期:2016-5-24
	 * @功能说明：在oracle的包体中插入一个范围内的开始时间和结束时间
	 */
    public void setOracleSessionSeDate(SearchConditionVo searchConditionVo){
        if(PubUtil.isEmpty(searchConditionVo.getBeginTime()))
            return;
        
        Map<String, String> parameter = new HashMap<String, String>();
        parameter.put("beginTime", searchConditionVo.getBeginTime());
        parameter.put("endTime", searchConditionVo.getEndTime());
        sqlMapDao.selectOne("sedate.setOracleSessionSeDate", parameter);
    }
}
